﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using UmbracoMedia.Foundation;
using System.ComponentModel;

namespace USTF.Media.SilverlightClient.ViewModel
{
    public class Login : INotifyPropertyChanged
    {
        public string UserName
        {
            get
            {
                return OpsContext.Current.Username;
            }
            set
            {
                OpsContext.Current.Username = value;
            }
        }

        public string Password
        {
            get
            {
                return OpsContext.Current.Password;
            }
            set
            {
                OpsContext.Current.Password = value;
            }
        }

        public string ServiceUrl
        {
            get
            {
                return OpsContext.Current.ServiceBase;
            }
            set
            {
                OpsContext.Current.ServiceBase = value;
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
}
